package cn.ac.sec.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.ac.sec.dao.UserDAO;
import cn.ac.sec.model.User;
import cn.ac.sec.service.UserService;

@Service
public class UserServiceImpl implements UserService{

	@Autowired
	private UserDAO userDAO;
	
	@Override
	public User getUserByUserName(String userName) {
		User user = userDAO.selectUserByUserName(userName);
		return user;
	}

}
